package com.fanghaoran.bean;

/**
 * @Author: win11
 * @Date: 2023/03/22/8:46
 * @Description: service层, controller层和view层的结果交互 封装成类
 */
public class Interaction {
    private String result;
    private Object message;


    public Interaction() {
    }

    public Interaction(String result, Object message) {
        this.result = result;
        this.message = message;
    }

    /**
     * 获取
     *
     * @return result
     */
    public String getResult() {
        return result;
    }

    /**
     * 设置
     *
     * @param result 字符串结果
     */
    public void setResult(String result) {
        this.result = result;
    }

    /**
     * 获取
     *
     * @return message
     */
    public Object getMessage() {
        return message;
    }

    /**
     * 设置
     *
     * @param message 返回的数据
     */
    public void setMessage(Object message) {
        this.message = message;
    }

    @Override
    public String toString() {
        return "Interaction{result = " + result + ", message = " + message + "}";
    }
}
